package com.ssyt.store.sys.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ssyt.store.common.EasyUIPageModel;
import com.ssyt.store.sys.entity.SysLogEntity;
import com.ssyt.store.sys.service.SysLogService;

@Controller
@RequestMapping("/sys/log")
public class LogController {

	@Autowired
	private SysLogService sysLogService;

	@RequestMapping("/listLogs")
	@ResponseBody
	public EasyUIPageModel<SysLogEntity> listLogs(int page, int rows) {
		return sysLogService.listLogs(page,rows);
	}
	
}
